
local xml = import("../../commonlib/external/xml.lua");
print(__directory__)
local xmlstr = xml.ToXmlString({
    name = "div",
    attr = {
        id = "test"
    },
    [1] = {
        name = "span",
        [1] = "hello world"
    }
}, false, false, "name");

print(xmlstr)
local obj = xml.FromXmlString(xmlstr);
commonlib.echo(obj)
print(obj[1], #(obj[1]), obj[1] == "")
commonlib.exit()